//
//  FontAndColorMacros.h
//  OnionHome
//
//  Created by fengjie on 2019/9/13.
//  Copyright © 2019 FengJie. All rights reserved.
//
//字体大小和颜色配置
//颜色
#define KClearColor [UIColor clearColor]
#define KWhiteColor [UIColor whiteColor]
#define KBlackColor [UIColor blackColor]
#define KGrayColor [UIColor grayColor]
#define KGray2Color [UIColor lightGrayColor]
#define KBlueColor [UIColor blueColor]
#define KRedColor [UIColor redColor]

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue&0xFF0000)>>16))/255.0 green:((float)((rgbValue&0xFF00)>>8))/255.0 blue:((float)(rgbValue&0xFF))/255.0 alpha:1.0]

#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]

#define RGB(r,g,b) RGBA(r,g,b,1.0f)

//字体
#define BOLDSYSTEMFONT(FONTSIZE)[UIFont boldSystemFontOfSize: FONTSIZE ]
#define SYSTEMFONT(FONTSIZE)    [UIFont systemFontOfSize:FONTSIZE]
#define FONT(NAME, FONTSIZE)    [UIFont fontWithName:(NAME) size:FONTSIZE]
//自定义字体
#define DINMedium(FONTSIZE) FONT(@"DIN-Medium", FONTSIZE)

/**苹果-简 中黑体 字重 Medium*/
#define PingFangSC_Medium(FONTSIZE) FONT(@"PingFangSC-Medium", FONTSIZE)
/**苹方-简 中粗体  字重 Semibold*/
#define PingFangSC_Semibold(FONTSIZE) FONT(@"PingFangSC-Semibold", FONTSIZE)
/**苹方-简 细体  字重 Light*/
#define PingFangSC_Light(FONTSIZE) FONT(@"PingFangSC-Light", FONTSIZE)
/**苹方-简 极细体  字重 Ultralight*/
#define PingFangSC_Ultralight(FONTSIZE) FONT(@"PingFangSC-Ultralight", FONTSIZE)
/**苹方-简 常规体  字重 Regular*/
#define PingFangSC_Regular(FONTSIZE) FONT(@"PingFangSC-Regular", FONTSIZE)
/**苹方-简 纤细体 字重 Thin*/
#define PingFangSC_Thin(FONTSIZE) FONT(@"PingFangSC-Thin", FONTSIZE)



#pragma mark ---全局统一颜色
/**分割线颜色*/
#define SeparatorColor UIColorFromRGB(0xE9EEE7);
